const dns = require('dns');

dns.lookup('sohungry.cn', (err, address, family) => {
console.log(`地址s:${address}  地址族: IPv${family}`);
});